Как правило разработчики делятся на два типа, те кто поддерживают исключения и те кто за ручную обработку ошибок.
🎯 Exception team: • Чистый код без проверок на каждом шаге • RAII + exceptions = идеальное сочетание • Стандартный C++ подход • Exception safety гарантии
📋 Error codes army:
• Предсказуемая производительность • Нет hidden control flow • Embedded-friendly • std::expected в C++23 спасет мир
GOOGLE STYLE: Exceptions запрещены, только error codes!
РЕАЛЬНОСТЬ: В высоко нагруженных приложениях exceptions = смерть, в обычном коде — удобство.
А ты из какого лагеря? И сколько раз ловил std::bad_alloc в production?
Как правило разработчики делятся на два типа, те кто поддерживают исключения и те кто за ручную обработку ошибок.
🎯 Exception team: • Чистый код без проверок на каждом шаге • RAII + exceptions = идеальное сочетание • Стандартный C++ подход • Exception safety гарантии
📋 Error codes army:
• Предсказуемая производительность • Нет hidden control flow • Embedded-friendly • std::expected в C++23 спасет мир
GOOGLE STYLE: Exceptions запрещены, только error codes!
РЕАЛЬНОСТЬ: В высоко нагруженных приложениях exceptions = смерть, в обычном коде — удобство.
А ты из какого лагеря? И сколько раз ловил std::bad_alloc в production?
Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.
However, analysts are positive on the stock now. “We have seen a huge downside movement in the stock due to the central electricity regulatory commission’s (CERC) order that seems to be negative from 2014-15 onwards but we cannot take a linear negative view on the stock and further downside movement on the stock is unlikely. Currently stock is underpriced. Investors can bet on it for a longer horizon," said Vivek Gupta, director research at CapitalVia Global Research.
Библиотека C C разработчика | cpp boost qt from kr